﻿@using Pyramid.Extentions
@using Pyramid.Mvc.Html
@model Pyramid.Models.Customer

<div class="pageContent">
	<div class="pageFormContent" layouth="60">
		<p>
			@Html.LabelFor(m => m.Code)
			@Html.ReadonlyFieldFor(m => m.Code)
		</p>
		<p>
			@Html.LabelFor(m => m.FullName)
			@Html.ReadonlyFieldFor(m => m.FullName)
		</p>
		<p>
			@Html.LabelFor(m => m.EnglishName)
			@Html.ReadonlyFieldFor(m => m.EnglishName)
		</p>
		<p>
			@Html.LabelFor(m => m.Gender)
			@Html.TextBox("Gender", Model.GenderString, new {@readonly = "readonly"})
		</p>
		<p>
			@Html.LabelFor(m => m.Birthday)
			@Html.ReadonlyDateFor(m => m.Birthday)
		</p>
		<p>
			@Html.LabelFor(m => m.IdCard)
			@Html.ReadonlyFieldFor(m => m.IdCard)
		</p>
		<p>
			@Html.LabelFor(m => m.CardType)
			@Html.TextBox("CardType", Model.CardTypeEnum.ToDescription(), new {@readonly = "readonly"})
		</p>
		<p>
			@Html.LabelFor(m => m.PostalCode)
			@Html.ReadonlyFieldFor(m => m.PostalCode)
		</p>
		<p class="nowrap">
			@Html.LabelFor(m => m.Address)
			@Html.ReadonlyFieldFor(m => m.Address)
		</p>
		<div class="divider"></div>
		<p>
			@Html.LabelFor(m => m.Profession)
			@Html.ReadonlyFieldFor(m => m.Profession)
		</p>
		<p>
			@Html.LabelFor(m => m.Education)
			@Html.ReadonlyFieldFor(m => m.Education)
		</p>
		<p>
			@Html.LabelFor(m => m.Tel)
			@Html.ReadonlyFieldFor(m => m.Tel)
		</p>
		<p>
			@Html.LabelFor(m => m.Mobile)
			@Html.ReadonlyFieldFor(m => m.Mobile)
		</p>
		<p>
			@Html.LabelFor(m => m.Fax)
			@Html.ReadonlyFieldFor(m => m.Fax)
		</p>
		<p>
			@Html.LabelFor(m => m.Email)
			@Html.ReadonlyFieldFor(m => m.Email)
		</p>
		<p>
			@Html.LabelFor(m => m.Interest)
			@Html.ReadonlyFieldFor(m => m.Interest)
		</p>
		<p>
			@Html.LabelFor(m => m.MaritalStatus)
			@Html.TextBox("MaritalStatus", Model.MaritalStatusString, new {@readonly = "readonly"})
		</p>
		<p>
			@Html.LabelFor(m => m.RevenueLevel)
			@Html.TextBox("RevenueLevel", Model.RevenueLevelString, new {@readonly = "readonly"})
		</p>
		<p class="nowrap">
			@Html.LabelFor(m => m.Remark)
			@Html.TextAreaFor(m => m.Remark, new {@class = "longText longParagraph"})
		</p>
		<div class="divider"></div>
		<p>
			@Html.LabelFor(m => m.ReceiveNews)
			@Html.EditorFor(m => m.ReceiveNews)
		</p>
		<p>
			@Html.LabelFor(m => m.IsVip)
			@Html.CheckBoxFor(m => m.IsVip)
		</p>
	</div>
</div>